import Vue from "vue";


import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import "../theme/index.css";

import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./assets/css/main.css";
import "./assets/css/base.css";

import VueClipboard from "vue-clipboard2";


Vue.use(ElementUI).use(VueClipboard);

Vue.config.productionTip = false;
Vue.prototype.$EventBus = new Vue()

new Vue({
  router,
  store,
  render: (h) => h(App),
  beforeCreate() {
    // bus 总线
    // $ 为了迎合 vue 的命名习惯
    // 安装全局事件总线，$bus就是当前应用的vm
    Vue.prototype.$bus = this;
  }
}).$mount("#app");
